You are here

public function Page::usesAdminTheme in Page Manager 8.4

Same name and namespace in other branches
  1. 8 src/Entity/Page.php \Drupal\page_manager\Entity\Page::usesAdminTheme()

Indicates if this page is an admin page or not.

Return value

bool TRUE if this is an admin page, FALSE otherwise.

Overrides PageInterface::usesAdminTheme

File

src/Entity/Page.php, line 146

Class

Page
Defines a Page entity class.

Namespace

Drupal\page_manager\Entity

Code

public function usesAdminTheme() {
  return isset($this->use_admin_theme) ? $this->use_admin_theme : strpos($this
    ->getPath(), '/admin/') === 0;
}