Commit 6db69fd2 authored by iStryker's avatar iStryker Committed by tstruyk1

Issue #2825899 by alphawebgroup, iStryker: Allow an option use Weight and...

Issue #2825899 by alphawebgroup, iStryker: Allow an option use Weight and Parent ID as contextual argument
parent fccb202b
......@@ -16,7 +16,7 @@ use Drupal\Core\Cache\Cache;
function draggableviews_views_data_alter(&$data) {
$data['draggableviews_structure']['weight'] = [
'title' => t('DraggableViews Weight'),
'group' => t('Global'),
'group' => t('Draggableviews'),
'help' => t('Display the weight value.'),
'field' => [
'id' => 'numeric',
......@@ -28,6 +28,9 @@ function draggableviews_views_data_alter(&$data) {
'help' => t('Filter by the draggableviews weight value (Native handler only).'),
'id' => 'numeric',
],
'argument' => [
'id' => 'numeric',
],
];
$data['draggableviews_structure']['parent'] = [
'title' => t('Parent'),
......@@ -40,6 +43,9 @@ function draggableviews_views_data_alter(&$data) {
'help' => t("Filter by the draggableviews parent's entity id (Native handler only)."),
'id' => 'numeric',
],
'argument' => [
'id' => 'numeric',
],
];
foreach (\Drupal::entityTypeManager()->getDefinitions() as $entity_type) {
......
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