Commit 5b25b278 authored by marcvangend's avatar marcvangend

deriver class naming consistent with core

parent 159a890e
......@@ -92,6 +92,11 @@ function fieldblock_field_display_submit($form, FormStateInterface $form_state)
function fieldblock_get_block_list() {
$fieldblocks = &drupal_static(__FUNCTION__);
/** @var \Drupal\Core\Entity\EntityDisplayModeInterface $view_mode_config */
// $view_mode_config = EntityViewDisplay::load($entity_type . '.' . $bundle . '.' . $mode);
$view_mode_configs = EntityViewDisplay::loadMultiple();
$foo = 'bar';
if (!isset($fieldblocks)) {
$fieldblocks = array();
$config_names = \Drupal::configFactory()->listAll('fieldblock.');
......
......@@ -14,7 +14,7 @@ use Drupal\Core\Block\BlockBase;
* @Block(
* id = "fieldblock",
* admin_label = @Translation("Fieldblock"),
* deriver = "Drupal\fieldblock\Plugin\Deriver\FieldBlock"
* deriver = "Drupal\fieldblock\Plugin\Derivative\FieldBlock"
* )
*/
class FieldBlock extends BlockBase {
......
......@@ -5,7 +5,7 @@
* Contains \Drupal\fieldblock\Plugin\Derivative\FieldBlock.
*/
namespace Drupal\fieldblock\Plugin\Deriver;
namespace Drupal\fieldblock\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverBase;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment