本文整理匯總了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);
}