$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');
| name: Modal Form Example | |
| type: module | |
| description: 'Modal Form Example module' | |
| package: Example | |
| version: VERSION | |
| core: 8.x |
| <?php | |
| use Drupal\views\ViewExecutable; | |
| use Drupal\views\Plugin\views\query\QueryPluginBase; | |
| /** | |
| * Implementation of hook_views_query_alter | |
| * @param type $view | |
| * @param type $query |
| Index: ./filefield_paths.module | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| --- ./filefield_paths.module (date 1517934386000) | |
| +++ ./filefield_paths.module (date 1517934386000) | |
| @@ -344,13 +344,15 @@ | |
| if ($field instanceof FileFieldItemList) { | |
| /** @var FieldConfig $definition */ |
In this case, the specific error was:
$ git pull
error: unable to unlink old 'sites/default/default.settings.php': Permission denied
I opened the sites directory and saw the following:
$ lll
rwxr-xr-x noxlady staff 160 B Tue Sep 4 13:34:39 2018 M? all/
r-xr-xr-x noxlady staff 192 B Tue Sep 4 13:40:49 2018 ✓ default/