Commit b1ccdf14 authored by Ismaeil Abouljamal's avatar Ismaeil Abouljamal
Browse files

by izus: Fix pareview.sh feedback.

parent b113b2cc
......@@ -80,8 +80,11 @@ class ExtractorQueue extends QueueWorkerBase implements ContainerFactoryPluginIn
}
/**
* Get the extractor plugin for
* Get the extractor plugin.
*
* @return object
* The plugin.
*
* @throws \Drupal\Component\Plugin\Exception\PluginException
*/
protected function getExtractorPlugin() {
......
......@@ -213,7 +213,7 @@ class FilesExtractor extends ProcessorPluginBase implements PluginFormInterface
$filefield_values = $entity->get($field_name)->filterEmptyItems()->getValue();
foreach ($filefield_values as $media_value) {
$media = Media::load($media_value['target_id']);
if ($media !== null) {
if ($media !== NULL) {
$bundle_configuration = $media->getSource()->getConfiguration();
if (isset($bundle_configuration['source_field'])) {
/** @var \Drupal\Core\Field\FieldItemListInterface $field_item */
......
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