Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
search_api_attachments
Commits
b1ccdf14
Commit
b1ccdf14
authored
Jun 28, 2019
by
Ismaeil Abouljamal
Browse files
by izus: Fix pareview.sh feedback.
parent
b113b2cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Plugin/QueueWorker/ExtractorQueue.php
View file @
b1ccdf14
...
...
@@ -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
()
{
...
...
src/Plugin/search_api/processor/FilesExtractor.php
View file @
b1ccdf14
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment