Skip to content
Snippets Groups Projects
Commit af672662 authored by Marc van Gend's avatar Marc van Gend
Browse files

start code cleanup

parent 5b0594eb
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ class FieldBlock extends DeriverBase {
* {@inheritdoc}
*/
public function getDerivativeDefinitions($base_plugin_definition) {
$blocks = FieldBlockHelper::fieldBlockGetBlockList();
$blocks = $this->fieldBlockGetBlockList();
foreach ($blocks as $fieldblock_id => $description) {
$this->derivatives[$fieldblock_id] = $base_plugin_definition;
......@@ -39,7 +39,8 @@ class FieldBlock extends DeriverBase {
*
* @return array An array of fieldblocks.
*/
public static function fieldBlockGetBlockList() {
protected function fieldBlockGetBlockList() {
// @todo Check if we actually need static caching.
$fieldblocks = &drupal_static(__FUNCTION__);
if (!isset($fieldblocks)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment