3 namespace Drupal\Console\Extension;
5 use Drupal\Core\Extension\Extension as BaseExtension;
10 * @package Drupal\Console\Extension
12 class Extension extends BaseExtension
18 public function getPath($fullPath = false)
21 return $this->root . '/' . parent::getPath();
24 return parent::getPath();
28 * @param bool $fullPath
31 public function getControllerPath($fullPath = false)
33 return $this->getSourcePath($fullPath) . '/Controller';
37 * @param bool $fullPath
40 public function getConfigInstallDirectory($fullPath = false)
42 return $this->getPath($fullPath) .'/config/install';
46 * @param bool $fullPath
49 public function getConfigOptionalDirectory($fullPath = false)
51 return $this->getPath($fullPath) .'/config/optional';
55 * @param bool $fullPath
58 public function getSourcePath($fullPath=false)
60 return $this->getPath($fullPath) . '/src';
64 * @param string $authenticationType
65 * @param boolean $fullPath
68 public function getAuthenticationPath($authenticationType, $fullPath = false)
70 return $this->getSourcePath($fullPath) .'/Authentication/' . $authenticationType;
77 public function getFormPath($fullPath = false)
79 return $this->getSourcePath($fullPath) . '/Form';
86 public function getRoutingPath($fullPath = false)
88 return $this->getSourcePath($fullPath) . '/Routing';
92 * @param bool $fullPath
95 public function getCommandDirectory($fullPath=false)
97 return $this->getSourcePath($fullPath) . '/Command/';
101 * @param bool $fullPath
104 public function getEntityPath($fullPath = false)
106 return $this->getSourcePath($fullPath) . '/Entity';
110 * @param bool $fullPath
113 public function getTemplatePath($fullPath = false)
115 return $this->getPath($fullPath) . '/templates';