當前位置: 首頁>>代碼示例>>PHP>>正文


PHP EntityInterface::getDescription方法代碼示例

本文整理匯總了PHP中Drupal\Core\Entity\EntityInterface::getDescription方法的典型用法代碼示例。如果您正苦於以下問題:PHP EntityInterface::getDescription方法的具體用法?PHP EntityInterface::getDescription怎麽用?PHP EntityInterface::getDescription使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Drupal\Core\Entity\EntityInterface的用法示例。


在下文中一共展示了EntityInterface::getDescription方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: buildRow

 /**
  * {@inheritdoc}
  */
 public function buildRow(EntityInterface $entity)
 {
     /** @var \Drupal\crm_core_match\Entity\Matcher $entity */
     $row['label'] = $entity->label();
     $row['description'] = $entity->getDescription();
     $row['plugin'] = $entity->getPluginTitle();
     return $row + parent::buildRow($entity);
 }
開發者ID:jasonruyle,項目名稱:crm_core,代碼行數:11,代碼來源:MatcherListBuilder.php

示例2: buildRow

 /**
  * {@inheritdoc}
  */
 public function buildRow(EntityInterface $entity)
 {
     $row['label'] = $entity->label();
     $row['id'] = $entity->id();
     $row['description'] = $entity->getDescription();
     $row['operations']['data'] = $this->buildOperations($entity);
     return $row;
 }
開發者ID:Tawreh,項目名稱:mtg,代碼行數:11,代碼來源:FeedTypeListBuilder.php

示例3: buildRow

  /**
   * {@inheritdoc}
   */
  public function buildRow(EntityInterface $entity) {
    /** @var \Drupal\eform\Entity\EFormType $entity */
    $row['title'] = array(
      'data' => $entity->getSubmitLink(),
      'class' => array('menu-label'),
    );
    // @todo add getDescription to eform_type
    $row['description'] = Xss::filterAdmin($entity->getDescription());
    $url = Url::fromRoute('entity.eform_type.submissions', ['eform_type' => $entity->id()]);

    $row += parent::buildRow($entity);
    // @todo Is there a better way to get the l function here?
    $row['submissions'] = \Drupal::l('Submissions', $url);
    return $row;
  }
開發者ID:AshishNaik021,項目名稱:iimisac-d8,代碼行數:18,代碼來源:EFormTypeListBuilder.php

示例4: buildRow

 /**
  * {@inheritdoc}
  */
 public function buildRow(EntityInterface $entity)
 {
     $row['title'] = array('data' => $entity->label(), 'class' => array('menu-label'));
     $row['description']['data'] = ['#markup' => $entity->getDescription()];
     return $row + parent::buildRow($entity);
 }
開發者ID:ravindrasingh22,項目名稱:Drupal-8-rc,代碼行數:9,代碼來源:NodeTypeListBuilder.php

示例5: buildRow

 /**
  * {@inheritdoc}
  */
 public function buildRow(EntityInterface $entity)
 {
     $row['type'] = String::checkPlain($entity->label());
     $row['description'] = Xss::filterAdmin($entity->getDescription());
     return $row + parent::buildRow($entity);
 }
開發者ID:davidsoloman,項目名稱:drupalconsole.com,代碼行數:9,代碼來源:CommentTypeListBuilder.php

示例6: buildRow

 /**
  * {@inheritdoc}
  */
 public function buildRow(EntityInterface $entity)
 {
     $row['type'] = $entity->link();
     $row['description']['data']['#markup'] = $entity->getDescription();
     return $row + parent::buildRow($entity);
 }
開發者ID:heddn,項目名稱:content_entity_base,代碼行數:9,代碼來源:EntityTypeBaseListBuilder.php

示例7: buildRow

 /**
  * {@inheritdoc}
  */
 public function buildRow(EntityInterface $entity)
 {
     $row['type'] = $entity->link();
     $row['description'] = Xss::filterAdmin($entity->getDescription());
     return $row + parent::buildRow($entity);
 }
開發者ID:nstielau,項目名稱:drops-8,代碼行數:9,代碼來源:BlockContentTypeListBuilder.php

示例8: buildRow

 /**
  * {@inheritdoc}
  */
 public function buildRow(EntityInterface $entity)
 {
     $row['type'] = SafeMarkup::checkPlain($entity->label());
     $row['description']['data'] = ['#markup' => $entity->getDescription()];
     return $row + parent::buildRow($entity);
 }
開發者ID:nsp15,項目名稱:Drupal8,代碼行數:9,代碼來源:CommentTypeListBuilder.php

示例9: buildRow

 /**
  * {@inheritdoc}
  */
 public function buildRow(EntityInterface $entity)
 {
     $row['label'] = $entity->label();
     $row['source'] = $entity->isUserGenerated() ? t('User') : t('System');
     $row['description'] = MailFormatHelper::htmlToText($entity->getDescription());
     return $row + parent::buildRow($entity);
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:10,代碼來源:GroupListBuilder.php


注:本文中的Drupal\Core\Entity\EntityInterface::getDescription方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。