slug = sanitize_title(basename($base, '.php')); $this->wrappers = [$base]; $this->template = $templateSlug; $str = substr($base, 0, -4); array_unshift($this->wrappers, sprintf($str . '-%s.php', $templateSlug)); } /** {@inheritdoc} */ public function getWrappers() { $this->wrappers = apply_filters('sage/wrap_' . $this->slug, $this->wrappers) ?: $this->wrappers; return $this->wrappers; } /** {@inheritdoc} */ public function getSlug() { return $this->slug; } /** {@inheritdoc} */ public function getTemplate() { return $this->template; } }