public function PathautoPattern::getAliasType in Pathauto 8
Return value
\Drupal\pathauto\AliasTypeInterface
Overrides PathautoPatternInterface::getAliasType
1 call to PathautoPattern::getAliasType()
- PathautoPattern::calculateDependencies in src/
Entity/ PathautoPattern.php  - Calculates dependencies and stores them in the dependency property.
 
File
- src/
Entity/ PathautoPattern.php, line 206  
Class
- PathautoPattern
 - Defines the Pathauto pattern entity.
 
Namespace
Drupal\pathauto\EntityCode
public function getAliasType() {
  if (!$this->aliasTypeCollection) {
    $this->aliasTypeCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('plugin.manager.alias_type'), $this
      ->getType(), [
      'default' => $this
        ->getPattern(),
    ]);
  }
  return $this->aliasTypeCollection
    ->get($this
    ->getType());
}