- Issue created by @acbramley
- 🇦🇺Australia dpi Perth, Australia
This should do it https://github.com/dpi/pinto/pull/12
- Status changed to Fixed
8 months ago 2:15pm 21 May 2024 Automatically closed - issue fixed for 2 weeks with no activity.
I want a base class for simple theme objects that don't have any logic to them, e.g
abstract class ThemeObjectBase {
use DrupalObjectTrait;
final private function __construct() {
}
public static function create(): static {
return new static();
}
public function __invoke(): mixed {
return $this->pintoBuild(static function (mixed $build): mixed {
return $build;
});
}
}
and
#[ThemeDefinition([])]
final class BackToTop extends ThemeObjectBase {
}
This results in the pinto mapping getting confused and uses the first theme object rendered following this pattern for all subsequent theme objects.
Fixed
1.0
Code
This should do it https://github.com/dpi/pinto/pull/12
Automatically closed - issue fixed for 2 weeks with no activity.