public function ViewmodepagePattern::getAliasType in View Mode Page 4.0.x
Same name and namespace in other branches
- 8.3 src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::getAliasType()
- 3.2.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::getAliasType()
Gets the alias type interface.
Return value
\Drupal\view_mode_page\AliasTypeInterface Returns the alias type interface.
Overrides ViewmodepagePatternInterface::getAliasType
1 call to ViewmodepagePattern::getAliasType()
- ViewmodepagePattern::calculateDependencies in src/
Entity/ ViewmodepagePattern.php - Calculates dependencies and stores them in the dependency property.
File
- src/
Entity/ ViewmodepagePattern.php, line 257
Class
- ViewmodepagePattern
- Defines the Viewmodepage pattern entity.
Namespace
Drupal\view_mode_page\EntityCode
public function getAliasType() {
if (!$this->aliasTypeCollection) {
$this->aliasTypeCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('view_mode_page.manager.alias_type'), $this
->getType(), [
'default' => $this
->getPattern(),
]);
}
return $this->aliasTypeCollection
->get($this
->getType());
}