You are here

public function FeedsPermissions::contentPermissions in Feeds 8.3

Returns an array of content permissions.

Return value

array Permissions for operations on feeds.

File

src/FeedsPermissions.php, line 22

Class

FeedsPermissions
Defines a class containing permission callbacks.

Namespace

Drupal\feeds

Code

public function contentPermissions() {
  return [
    'access feed overview' => [
      'title' => $this
        ->t('Access the Feed overview page'),
      'description' => $this
        ->t('Get an overview of <a href=":url">all feeds</a>.', [
        ':url' => Url::fromRoute('feeds.admin'),
      ]),
    ],
  ];
}