mirror of
https://github.com/getgrav/grav.git
synced 2026-07-06 02:47:45 +02:00
Added new Plugin::getBlueprint() and Theme::getBlueprint() method
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# v1.1.0-beta.2
|
||||
## xx/xx/2016
|
||||
|
||||
1. [](#new)
|
||||
* Added new `Plugin::getBlueprint()` and `Theme::getBlueprint()` method
|
||||
1. [](#improved)
|
||||
* Moved to new `data-*@` format in blueprints
|
||||
1. [](#bugfix)
|
||||
|
||||
@@ -294,6 +294,19 @@ class Plugin implements EventSubscriberInterface, \ArrayAccess
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Simpler getter for the plugin blueprint
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getBlueprint()
|
||||
{
|
||||
if (!$this->blueprint) {
|
||||
$this->loadBlueprint();
|
||||
}
|
||||
return $this->blueprint;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load blueprints.
|
||||
*/
|
||||
|
||||
@@ -56,6 +56,19 @@ class Theme extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Simpler getter for the theme blueprint
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getBlueprint()
|
||||
{
|
||||
if (!$this->blueprint) {
|
||||
$this->loadBlueprint();
|
||||
}
|
||||
return $this->blueprint;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load blueprints.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user