/** * Constructor. * * @since 3.2.0 */ public function __construct() { $this->setSeparator('|'); } /** * Get the build view content * * @return string * @since 3.2.0 */ public function build(): string { if ($this->isActive()) { $bucket = []; foreach ($this->active as $views_code_name => $actions) { $bucket[] = Indent::_(1) . '
'; foreach ($actions as $action) { $bucket[] = Indent::_(2) . ''; } $bucket[] = Indent::_(1) . "
"; } // reset memory $this->active = []; return PHP_EOL . implode(PHP_EOL, $bucket); } return ''; }