本文整理汇总了PHP中Drupal\Core\Entity\EntityListBuilder::buildHeader方法的典型用法代码示例。如果您正苦于以下问题:PHP EntityListBuilder::buildHeader方法的具体用法?PHP EntityListBuilder::buildHeader怎么用?PHP EntityListBuilder::buildHeader使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Drupal\Core\Entity\EntityListBuilder
的用法示例。
在下文中一共展示了EntityListBuilder::buildHeader方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
$header['title'] = t('Title');
$header['type'] = t('Type');
$header['status'] = t('Status');
return $header + parent::buildHeader();
}
示例2: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader() {
$header = [
'label' => $this->t('Label'),
'type' => [
'data' => $this->t('Type'),
'class' => [RESPONSIVE_PRIORITY_MEDIUM],
],
'owner' => [
'data' => $this->t('Owner'),
'class' => [RESPONSIVE_PRIORITY_LOW],
],
'status' => $this->t('Status'),
'changed' => [
'data' => $this->t('Updated'),
'class' => [RESPONSIVE_PRIORITY_LOW],
],
];
if (\Drupal::languageManager()->isMultilingual()) {
$header['language_name'] = [
'data' => $this->t('Language'),
'class' => [RESPONSIVE_PRIORITY_LOW],
];
}
return $header + parent::buildHeader();
}
示例3: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
$header['id'] = $this->t('Component ID');
$header['name'] = $this->t('Name');
$header['uuid'] = $this->t('Component UUID');
return $header + parent::buildHeader();
}
示例4: buildHeader
/**
* {@inheritdoc}
*
* Building the header and content lines for the contact list.
*
* Calling the parent::buildHeader() adds a column for the possible actions
* and inserts the 'edit' and 'delete' links as defined for the entity type.
*/
public function buildHeader()
{
foreach ($this->show_fields as $name => $label) {
$header[$name] = $this->t($label);
}
return $header + parent::buildHeader();
}
示例5: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader() {
$header = array(
'information_id' => array(
'data' => $this->t('Information ID'),
'class' => array(RESPONSIVE_PRIORITY_LOW),
),
'payment_method' => array(
'data' => $this->t('Payment method'),
'class' => array(RESPONSIVE_PRIORITY_MEDIUM),
),
'owner' => array(
'data' => $this->t('Owner'),
'class' => array(RESPONSIVE_PRIORITY_LOW),
),
'status' => $this->t('Status'),
'created' => array(
'data' => $this->t('Created'),
'class' => array(RESPONSIVE_PRIORITY_LOW),
),
'changed' => array(
'data' => $this->t('Changed'),
'class' => array(RESPONSIVE_PRIORITY_LOW),
),
);
return $header + parent::buildHeader();
}
示例6: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader() {
$header = [
'order_id' => [
'data' => $this->t('Order ID'),
'class' => [RESPONSIVE_PRIORITY_LOW],
],
'type' => [
'data' => $this->t('Order type'),
'class' => [RESPONSIVE_PRIORITY_MEDIUM],
],
'owner' => [
'data' => $this->t('Owner'),
'class' => [RESPONSIVE_PRIORITY_LOW],
],
'status' => $this->t('Status'),
'created' => [
'data' => $this->t('Created'),
'class' => [RESPONSIVE_PRIORITY_LOW],
],
'updated' => [
'data' => $this->t('Updated'),
'class' => [RESPONSIVE_PRIORITY_LOW],
],
];
return $header + parent::buildHeader();
}
示例7: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
$header = array();
$header['date'] = $this->t('Activity Date');
$header['title'] = $this->t('Title');
$header['type'] = $this->t('Activity type');
return $header + parent::buildHeader();
}
示例8: buildHeader
/**
* {@inheritdoc}
*
* Building the header and content lines for the contact list.
*
* Calling the parent::buildHeader() adds a column for the possible actions
* and inserts the 'edit' and 'delete' links as defined for the entity type.
*/
public function buildHeader()
{
$header['id'] = $this->t('ContactID');
$header['name'] = $this->t('Name');
$header['first_name'] = $this->t('First Name');
$header['gender'] = $this->t('Gender');
return $header + parent::buildHeader();
}
示例9: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
$header = array();
$header['label'] = $this->t('Label');
$header['type'] = array('data' => $this->t('Contact type'), 'class' => array(RESPONSIVE_PRIORITY_MEDIUM));
$header['changed'] = array('data' => $this->t('Updated'), 'class' => array(RESPONSIVE_PRIORITY_LOW));
return $header + parent::buildHeader();
}
示例10: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
$header['name'] = t('Name');
$header['source'] = t('Source');
$header['grade_valuation_type'] = t('Valuation type');
$header['grade_display_type'] = t('Display type');
$header['multiplicator'] = t('Multiplicator');
return $header + parent::buildHeader();
}
示例11: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
// Enable language column and filter if multiple languages are added.
$header = array('title' => $this->t('Title'), 'type' => array('data' => $this->t('Content type'), 'class' => array(RESPONSIVE_PRIORITY_MEDIUM)), 'author' => array('data' => $this->t('Author'), 'class' => array(RESPONSIVE_PRIORITY_LOW)), 'status' => $this->t('Status'), 'changed' => array('data' => $this->t('Updated'), 'class' => array(RESPONSIVE_PRIORITY_LOW)));
if (\Drupal::languageManager()->isMultilingual()) {
$header['language_name'] = array('data' => $this->t('Language'), 'class' => array(RESPONSIVE_PRIORITY_LOW));
}
return $header + parent::buildHeader();
}
示例12: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
$header['name'] = t('Name');
$header['lowest'] = t('Lowest');
$header['highest'] = t('Highest');
$header['pass'] = t('Pass');
$header['hidden'] = t('Hidden');
$header['locked'] = t('Locked');
return $header + parent::buildHeader();
}
示例13: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
$header['type'] = $this->t('Type');
$header['user'] = $this->t('Auth User');
$header['owner'] = $this->t('Owner');
$header['id'] = $this->t('ID');
$header['name'] = $this->t('Token');
$header['resource'] = $this->t('Resource');
return $header + parent::buildHeader();
}
示例14: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
$header = array('username' => array('data' => $this->t('Username'), 'field' => 'name', 'specifier' => 'name'), 'status' => array('data' => $this->t('Status'), 'field' => 'status', 'specifier' => 'status', 'class' => array(RESPONSIVE_PRIORITY_LOW)), 'roles' => array('data' => $this->t('Roles'), 'class' => array(RESPONSIVE_PRIORITY_LOW)), 'member_for' => array('data' => $this->t('Member for'), 'field' => 'created', 'specifier' => 'created', 'sort' => 'desc', 'class' => array(RESPONSIVE_PRIORITY_LOW)), 'access' => array('data' => $this->t('Last access'), 'field' => 'access', 'specifier' => 'access', 'class' => array(RESPONSIVE_PRIORITY_LOW)));
return $header + parent::buildHeader();
}
示例15: buildHeader
/**
* {@inheritdoc}
*/
public function buildHeader()
{
$header['id'] = $this->t('Quiz ID');
$header['name'] = $this->t('Name');
return $header + parent::buildHeader();
}