5 * Contains Drupal\Console\Command\Shared\CreateTrait.
8 namespace Drupal\Console\Command\Shared;
13 * @package Drupal\Console\Command
20 private function getTimeRange()
23 1 => sprintf('N | %s', $this->trans('commands.create.nodes.questions.time-ranges.0')),
24 3600 => sprintf('H | %s', $this->trans('commands.create.nodes.questions.time-ranges.1')),
25 86400 => sprintf('D | %s', $this->trans('commands.create.nodes.questions.time-ranges.2')),
26 604800 => sprintf('W | %s', $this->trans('commands.create.nodes.questions.time-ranges.3')),
27 2592000 => sprintf('M | %s', $this->trans('commands.create.nodes.questions.time-ranges.4')),
28 31536000 => sprintf('Y | %s', $this->trans('commands.create.nodes.questions.time-ranges.5'))