protected function execute(InputInterface $input, OutputInterface $output) { $io = new DrupalStyle($input, $output); $theme = $input->getArgument('theme'); $fullPath = $input->getOption('absolute'); $theme = $this->extensionManager->getTheme($theme); $io->info($theme->getPath($fullPath)); }
/** * Generator BreakPoint. * * @param $theme * @param $breakpoints * @param $machine_name */ public function generate($theme, $breakpoints, $machine_name) { $parameters = ['theme' => $theme, 'breakpoints' => $breakpoints, 'machine_name' => $machine_name]; $theme_path = $this->extensionManager->getTheme($theme)->getPath(); $this->renderFile('theme/breakpoints.yml.twig', $theme_path . '/' . $machine_name . '.breakpoints.yml', $parameters, FILE_APPEND); }