diff --git a/core/lib/Drupal/Core/Entity/EntityListController.php b/core/lib/Drupal/Core/Entity/EntityListController.php index 354b27a..6e811e6 100644 --- a/core/lib/Drupal/Core/Entity/EntityListController.php +++ b/core/lib/Drupal/Core/Entity/EntityListController.php @@ -91,7 +91,7 @@ public function getOperations(EntityInterface $entity) { * * @see Drupal\Core\Entity\EntityListController::render() */ - public function buildHeader() { + protected function buildHeader() { $row['label'] = t('Label'); $row['id'] = t('Machine name'); $row['operations'] = t('Operations'); @@ -109,7 +109,7 @@ public function buildHeader() { * * @see Drupal\Core\Entity\EntityListController::render() */ - public function buildRow(EntityInterface $entity) { + protected function buildRow(EntityInterface $entity) { $row['label'] = $entity->label(); $row['id'] = $entity->id(); $operations = $this->buildOperations($entity); @@ -128,7 +128,7 @@ public function buildRow(EntityInterface $entity) { * * @see Drupal\Core\Entity\EntityListController::render() */ - public function buildOperations(EntityInterface $entity) { + protected function buildOperations(EntityInterface $entity) { // Retrieve and sort operations. $operations = $this->getOperations($entity); uasort($operations, 'drupal_sort_weight'); diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php index 8ef270c..73095c5 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php @@ -41,7 +41,7 @@ public function getOperations(EntityInterface $entity) { /** * Overrides \Drupal\Core\Entity\EntityListController::buildHeader(). */ - public function buildHeader() { + protected function buildHeader() { $row['type'] = t('Block type'); $row['description'] = t('Description'); $row['operations'] = t('Operations'); @@ -51,7 +51,7 @@ public function buildHeader() { /** * Overrides \Drupal\Core\Entity\EntityListController::buildRow(). */ - public function buildRow(EntityInterface $entity) { + protected function buildRow(EntityInterface $entity) { parent::buildRow($entity); $uri = $entity->uri(); $row['type'] = l($entity->label(), $uri['path'], $uri['options']); diff --git a/core/modules/contact/lib/Drupal/contact/CategoryListController.php b/core/modules/contact/lib/Drupal/contact/CategoryListController.php index a3ec886..493a0f2 100644 --- a/core/modules/contact/lib/Drupal/contact/CategoryListController.php +++ b/core/modules/contact/lib/Drupal/contact/CategoryListController.php @@ -40,7 +40,7 @@ public function getOperations(EntityInterface $entity) { /** * Overrides Drupal\Core\Entity\EntityListController::buildHeader(). */ - public function buildHeader() { + protected function buildHeader() { $row['category'] = t('Category'); $row['recipients'] = t('Recipients'); $row['selected'] = t('Selected'); @@ -51,7 +51,7 @@ public function buildHeader() { /** * Overrides Drupal\Core\Entity\EntityListController::buildRow(). */ - public function buildRow(EntityInterface $entity) { + protected function buildRow(EntityInterface $entity) { $row['category'] = check_plain($entity->label()); $row['recipients'] = check_plain(implode(', ', $entity->recipients)); $default_category = config('contact.settings')->get('default_category'); diff --git a/core/modules/menu/lib/Drupal/menu/MenuListController.php b/core/modules/menu/lib/Drupal/menu/MenuListController.php index e557d92..0880abb 100644 --- a/core/modules/menu/lib/Drupal/menu/MenuListController.php +++ b/core/modules/menu/lib/Drupal/menu/MenuListController.php @@ -17,7 +17,7 @@ class MenuListController extends ConfigEntityListController { /** * Overrides \Drupal\Core\Entity\EntityListController::buildHeader(). */ - public function buildHeader() { + protected function buildHeader() { $row['title'] = t('Title'); $row['description'] = array( 'data' => t('Description'), @@ -30,7 +30,7 @@ public function buildHeader() { /** * Overrides \Drupal\Core\Entity\EntityListController::buildRow(). */ - public function buildRow(EntityInterface $entity) { + protected function buildRow(EntityInterface $entity) { $row['title'] = array( 'data' => check_plain($entity->label()), 'class' => array('menu-label'), diff --git a/core/modules/shortcut/lib/Drupal/shortcut/ShortcutListController.php b/core/modules/shortcut/lib/Drupal/shortcut/ShortcutListController.php index 401d280..2e383e3 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/ShortcutListController.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/ShortcutListController.php @@ -17,7 +17,7 @@ class ShortcutListController extends ConfigEntityListController { /** * Overrides \Drupal\Core\Entity\EntityListController::buildHeader(). */ - public function buildHeader() { + protected function buildHeader() { $row['label'] = t('Name'); $row['operations'] = t('Operations'); return $row; @@ -52,7 +52,7 @@ public function getOperations(EntityInterface $entity) { /** * Overrides \Drupal\Core\Entity\EntityListController::buildRow(). */ - public function buildRow(EntityInterface $entity) { + protected function buildRow(EntityInterface $entity) { $row['name'] = check_plain($entity->label()); $row['operations']['data'] = $this->buildOperations($entity); return $row; diff --git a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php index 7bb130e..2c9d886 100644 --- a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php +++ b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewListController.php @@ -37,7 +37,7 @@ public function load() { /** * Overrides Drupal\Core\Entity\EntityListController::buildRow(); */ - public function buildRow(EntityInterface $view) { + protected function buildRow(EntityInterface $view) { return array( 'data' => array( 'view_name' => theme('views_ui_view_info', array('view' => $view)), @@ -56,7 +56,7 @@ public function buildRow(EntityInterface $view) { /** * Overrides Drupal\Core\Entity\EntityListController::buildHeader(); */ - public function buildHeader() { + protected function buildHeader() { return array( 'view_name' => array( 'data' => t('View name'), @@ -108,7 +108,7 @@ public function getOperations(EntityInterface $view) { /** * Overrides Drupal\Core\Entity\EntityListController::buildOperations(); */ - public function buildOperations(EntityInterface $entity) { + protected function buildOperations(EntityInterface $entity) { $build = parent::buildOperations($entity); // Allow operations to specify that they use AJAX.