當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。