$bid = 'myblock';
$block = \Drupal\block_content\Entity\BlockContent::load($bid);
$render = \Drupal::entityTypeManager()->getViewBuilder('block_content')->view($block);
$block_manager = \Drupal::service('plugin.manager.block');
Given /^(?:|I )am on "(?P<page>[^"]+)"$/ | |
Given /^(?:|I )am on (?:|the )homepage$/ | |
Given :type content: | |
Given :vocabulary terms: | |
Given I am an anonymous user | |
Given I am at :path | |
Given I am logged in as :name | |
Given I am logged in as a user with the :permissions permission(s) | |
Given I am logged in as a user with the :role role(s) | |
Given I am logged in as a user with the :role role(s) and I have the following fields: |