當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ConfigEntityListBuilder::render方法代碼示例

本文整理匯總了PHP中Drupal\Core\Config\Entity\ConfigEntityListBuilder::render方法的典型用法代碼示例。如果您正苦於以下問題:PHP ConfigEntityListBuilder::render方法的具體用法?PHP ConfigEntityListBuilder::render怎麽用?PHP ConfigEntityListBuilder::render使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Drupal\Core\Config\Entity\ConfigEntityListBuilder的用法示例。


在下文中一共展示了ConfigEntityListBuilder::render方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $entities = $this->load();
     $build = parent::render();
     $build['table']['#empty'] = t('No keys are available. <a href="@link">Add a key</a>.', array('@link' => \Drupal::url('entity.key.add_form')));
     return $build;
 }
開發者ID:nerdstein,項目名稱:key,代碼行數:10,代碼來源:KeyListBuilder.php

示例2: render

 /**
  * {@inheritdoc}
  */
 public function render() {
   $build = parent::render();
   $build['#empty'] = $this->t('There are currently no blocktabs. <a href=":url">Add a new one</a>.', array(
     ':url' => $this->urlGenerator->generateFromRoute('blocktabs.add'),
   ));
   return $build;
 }
開發者ID:AshishNaik021,項目名稱:iimisac-d8,代碼行數:10,代碼來源:BlocktabsListBuilder.php

示例3: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     if (!empty($this->weightKey)) {
         return $this->formBuilder()->getForm($this);
     }
     return parent::render();
 }
開發者ID:318io,項目名稱:318-io,代碼行數:10,代碼來源:DraggableListBuilder.php

示例4: render

 /**
  * Adds some descriptive text to our entity list.
  *
  * @return array
  *   Renderable array.
  */
 public function render()
 {
     $build['description'] = array('#markup' => $this->t("<p>This is a list of the countries currently" . " defined for use on your Drupal site. This country data adheres to" . " the @iso standard for country and zone naming used by payment" . " providers and package couriers.</p>" . "<p>To make a country available for use at checkout or in a user's" . " address book, 'Enable' the country using the widget in the" . " 'Operations' for that country. You may also 'Disable' a country to" . " prevent customers from selecting that country as a billing or" . " shipping address.</p>" . "<p>You may also use the 'Edit' widget in the 'Operations' column to" . " edit a country's name or address format.</p>", ['@iso' => Link::fromTextAndUrl('ISO 3166', Url::fromUri('http://en.wikipedia.org/wiki/ISO_3166'))->toString()]));
     $build += parent::render();
     $build['table']['#empty'] = $this->t('No countries have been configured yet.');
     return $build;
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:13,代碼來源:CountryListBuilder.php

示例5: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $build['description'] = array('#markup' => $this->t("<p>This is a list of the tax rates currently" . " defined on your Drupal site.</p><p>You may use the 'Add a tax rate'" . " button to add a new rate, or use the widget in the 'Operations'" . " column to edit, delete, or clone existing tax rates.</p>"));
     $build += parent::render();
     $build['table']['#empty'] = $this->t('No tax rates have been configured yet.');
     $build['table']['#tabledrag'] = array(array('action' => 'order', 'relationship' => 'sibling', 'group' => 'uc-tax-method-weight'));
     return $build;
 }
開發者ID:pedrocones,項目名稱:hydrotools,代碼行數:11,代碼來源:TaxRateListBuilder.php

示例6: render

 /**
  * {@inheritdoc}
  */
 public function render($target_entity_type_id = NULL, $target_bundle = NULL)
 {
     $this->targetEntityTypeId = $target_entity_type_id;
     $this->targetBundle = $target_bundle;
     $build = parent::render();
     $build['table']['#attributes']['id'] = 'field-overview';
     $build['table']['#empty'] = $this->t('No fields are present yet.');
     return $build;
 }
開發者ID:aWEBoLabs,項目名稱:taxi,代碼行數:12,代碼來源:FieldConfigListBuilder.php

示例7: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $build = parent::render();
     // Get the definition of the referring entity.
     $bundle_of_definition = $this->getBundleOfDefinition();
     // Override the empty text.
     $build['table']['#empty'] = $this->t('There are no @label types yet.', ['@label' => $bundle_of_definition->getLabel()]);
     return $build;
 }
開發者ID:heddn,項目名稱:content_entity_base,代碼行數:12,代碼來源:EntityTypeBaseListBuilder.php

示例8: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $build = parent::render();
     $filter = $this->getFilterLabels();
     usort($build['table']['#rows'], array($this, 'sortRows'));
     $build['filters'] = array('#type' => 'container', '#attributes' => array('class' => array('table-filter', 'js-show')));
     $build['filters']['text'] = array('#type' => 'search', '#title' => $this->t('Search'), '#size' => 30, '#placeholder' => $filter['placeholder'], '#attributes' => array('class' => array('table-filter-text'), 'data-table' => '.config-translation-entity-list', 'autocomplete' => 'off', 'title' => $filter['description']));
     $build['table']['#attributes']['class'][] = 'config-translation-entity-list';
     $build['#attached']['library'][] = 'system/drupal.system.modules';
     return $build;
 }
開發者ID:Nikola-xiii,項目名稱:d8intranet,代碼行數:14,代碼來源:ConfigTranslationEntityListBuilder.php

示例9: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $build = parent::render();
     /**
      * Allow modules to insert their own top_action links to the list, like cleanup module.
      *
      * This is not done anymore via the workflow hook.
      * Instead, for an example:
      *   @see workflow_ui.links.action.yml
      *   @see workflow.api.php under 'hook_workflow_operations'.
      */
     // $top_actions = \Drupal::moduleHandler()
     //   ->invokeAll('workflow_operations', array('top_actions', NULL));
     // $top_actions_args = array(
     //   'links' => $top_actions,
     //   'attributes' => array('class' => array('inline', 'action-links')),
     // );
     return $build;
 }
開發者ID:sedurzu,項目名稱:ildeposito8,代碼行數:22,代碼來源:WorkflowListBuilder.php

示例10: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $build = parent::render();
     $build['table']['#attached']['library'][] = 'payment/payment_method_configuration.list';
     $build['table']['#attributes']['class'][] = 'payment-method-configuration-list';
     $build['table']['#empty'] = $this->t('There is no payment method configuration yet.');
     return $build;
 }
開發者ID:nishantkumar155,項目名稱:drupal8.crackle,代碼行數:11,代碼來源:PaymentMethodConfigurationListBuilder.php

示例11: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $build = parent::render();
     $build['table']['#empty'] = $this->t('No content types available. <a href="@link">Add content type</a>.', ['@link' => Url::fromRoute('node.type_add')->toString()]);
     return $build;
 }
開發者ID:ravindrasingh22,項目名稱:Drupal-8-rc,代碼行數:9,代碼來源:NodeTypeListBuilder.php

示例12: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $build = parent::render();
     $build['#empty'] = $this->t('There are currently no styles. <a href="!url">Add a new one</a>.', array('!url' => $this->urlGenerator->generateFromPath('admin/config/media/image-styles/add')));
     return $build;
 }
開發者ID:anatalsceo,項目名稱:en-classe,代碼行數:9,代碼來源:ImageStyleListBuilder.php

示例13: render

 /**
  * {@inheritdoc}
  *
  * We override ::render() so that we can add our own content above the table.
  * parent::render() is where EntityListBuilder creates the table using our
  * buildHeader() and buildRow() implementations.
  */
 public function render()
 {
     $build['description'] = ['#markup' => $this->t('These rules components are config entities. Add more text here.')];
     $build['table'] = parent::render();
     return $build;
 }
開發者ID:shahinam,項目名稱:drupal8devel,代碼行數:13,代碼來源:RulesComponentListBuilder.php

示例14: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $build = parent::render();
     $build['table']['#empty'] = t('No bundles available. !link.', array('!link' => \Drupal::l('Add new bundle', new Url('eck.entity.' . $this->entityTypeId . '.add'))));
     return $build;
 }
開發者ID:jokas,項目名稱:d8.dev,代碼行數:9,代碼來源:EckEntityBundleListBuilder.php

示例15: render

 /**
  * {@inheritdoc}
  */
 public function render()
 {
     $build = parent::render();
     $build['#attached']['css'][] = drupal_get_path('module', 'menu') . '/css/menu.admin.css';
     return $build;
 }
開發者ID:anatalsceo,項目名稱:en-classe,代碼行數:9,代碼來源:MenuListBuilder.php


注:本文中的Drupal\Core\Config\Entity\ConfigEntityListBuilder::render方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。