Added new Plugin::getBlueprint() and Theme::getBlueprint() method

This commit is contained in:
Andy Miller
2016-04-26 13:00:17 -06:00
parent d407c89c74
commit a2acb99c79
3 changed files with 28 additions and 0 deletions

View File

@@ -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)

View File

@@ -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.
*/

View File

@@ -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.
*/