-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACMS-4246: Refactor Acquia Starter Kit Search to work with recipe. #1915
base: develop
Are you sure you want to change the base?
Conversation
8036365
to
6921df3
Compare
3659734
to
0c160f9
Compare
59deb27
to
15998b4
Compare
@@ -24,21 +24,16 @@ function acquia_cms_search_install($is_syncing) { | |||
|
|||
// Retroactively enable indexing for any content types that existed before | |||
// this module was installed. | |||
$node_types = NodeType::loadMultiple(); | |||
$node_types = \Drupal::entityTypeManager()->getStorage('node_type')->loadMultiple(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with below lines
$entity_type_manager = \Drupal::entityTypeManager();
$node_types = $entity_type_manager->getStorage('node_type')->loadMultiple();
$enabled_modules = array_keys($enabled_modules); | ||
_acquia_cms_search_add_category_facet($enabled_modules); | ||
array_walk($node_types, '_acquia_cms_search_import_content_type_views'); | ||
$search_category = \Drupal::entityTypeManager()->getStorage('facets_facet')->loadByProperties(['id' => 'search_category']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$search_category = $entity_type_manager->getStorage('facets_facet')->loadByProperties(['id' => 'search_category']);
} | ||
|
||
/** | ||
* Implements hook_ENTITY_TYPE_insert() for node types. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong doc comment.
* @return bool | ||
* TRUE if the configuration exists, FALSE otherwise. | ||
*/ | ||
function configExists($config_name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method is called only at one instance.. can we directly implement the code block where this method called.
Pros: We can avoid the introducing of new method.
Just a suggestion!!
89d00a8
to
2dcd9b0
Compare
2dcd9b0
to
825ba7b
Compare
825ba7b
to
443f67c
Compare
443f67c
to
116c5d0
Compare
Motivation
Fixes #NNN
Proposed changes
Alternatives considered
Testing steps
Merge requirements