当前位置: 首页>>代码示例>>PHP>>正文


PHP EntityListBuilder::buildHeader方法代码示例

本文整理汇总了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();
 }
开发者ID:mglaman,项目名称:drupalcamp-base,代码行数:10,代码来源:RoomListBuilder.php

示例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();
 }
开发者ID:housineali,项目名称:drpl8_dv,代码行数:28,代码来源:ProfileListBuilder.php

示例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();
 }
开发者ID:poetic,项目名称:clutch,代码行数:10,代码来源:ComponentListBuilder.php

示例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();
 }
开发者ID:alexawg2015,项目名称:drupal-8,代码行数:15,代码来源:MyeckListBuilder.php

示例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();
 }
开发者ID:housineali,项目名称:drpl8_dv,代码行数:29,代码来源:PaymentInfoListBuilder.php

示例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();
  }
开发者ID:housineali,项目名称:drpl8_dv,代码行数:30,代码来源:OrderListBuilder.php

示例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();
 }
开发者ID:jasonruyle,项目名称:crm_core,代码行数:11,代码来源:ActivityListBuilder.php

示例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();
 }
开发者ID:dropdog,项目名称:play,代码行数:16,代码来源:ContactListBuilder.php

示例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();
 }
开发者ID:jasonruyle,项目名称:crm_core,代码行数:11,代码来源:ContactListBuilder.php

示例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();
 }
开发者ID:dakala,项目名称:gradebook,代码行数:12,代码来源:GradeItemListBuilder.php

示例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();
 }
开发者ID:ravindrasingh22,项目名称:Drupal-8-rc,代码行数:12,代码来源:NodeListBuilder.php

示例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();
 }
开发者ID:dakala,项目名称:gradebook,代码行数:13,代码来源:GradeItemDataListBuilder.php

示例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();
 }
开发者ID:mosswoodcreative,项目名称:d8-api-test,代码行数:13,代码来源:AccessTokenListBuilder.php

示例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();
 }
开发者ID:shumer,项目名称:blog,代码行数:8,代码来源:UserListBuilder.php

示例15: buildHeader

 /**
  * {@inheritdoc}
  */
 public function buildHeader()
 {
     $header['id'] = $this->t('Quiz ID');
     $header['name'] = $this->t('Name');
     return $header + parent::buildHeader();
 }
开发者ID:novaFTL,项目名称:quiz-drupal8,代码行数:9,代码来源:QuizListBuilder.php


注:本文中的Drupal\Core\Entity\EntityListBuilder::buildHeader方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。