public function PictureMappingListController::hookMenu

Overrides Drupal\config\EntityListControllerBase::hookMenu().

File

drupal/core/modules/picture/lib/Drupal/picture/PictureMappingListController.php, line 21
Contains Drupal\picture\PictureListController.

Class

PictureMappingListController
Provides a listing of Pictures.

Namespace

Drupal\picture

Code

public function hookMenu() {
  $path = $this->entityInfo['list path'];
  $items = parent::hookMenu();

  // Override the access callback.
  $items[$path]['title'] = 'Picture Mappings';
  $items[$path]['description'] = 'Manage list of picture mappings.';
  $items[$path]['access callback'] = 'user_access';
  $items[$path]['access arguments'] = array(
    'administer pictures',
  );
  return $items;
}