本文整理汇总了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);
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例6: buildRow
/**
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity)
{
$row['type'] = $entity->link();
$row['description']['data']['#markup'] = $entity->getDescription();
return $row + parent::buildRow($entity);
}
示例7: buildRow
/**
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity)
{
$row['type'] = $entity->link();
$row['description'] = Xss::filterAdmin($entity->getDescription());
return $row + parent::buildRow($entity);
}
示例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);
}
示例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);
}