Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
427ec64d
Commit
427ec64d
authored
Jul 29, 2012
by
Tim Plunkett
Browse files
Switch from AnnotatedClassDiscovery to ViewsDiscovery.
parent
99e3cd96
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/Drupal/views/Plugin/Type/ArgumentDefaultPluginManager.php
View file @
427ec64d
...
...
@@ -9,12 +9,11 @@
use
Drupal\Component\Plugin\PluginManagerBase
;
use
Drupal\Component\Plugin\Factory\DefaultFactory
;
use
Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery
;
use
Drupal\views\Plugin\Discovery\ViewsDiscovery
;
class
ArgumentDefaultPluginManager
extends
PluginManagerBase
{
public
function
__construct
()
{
$this
->
discovery
=
new
AnnotatedClas
sDiscovery
(
'views'
,
'argument_default'
);
$this
->
discovery
=
new
View
sDiscovery
(
'views'
,
'argument_default'
);
$this
->
factory
=
new
DefaultFactory
(
$this
->
discovery
);
}
}
lib/Drupal/views/Plugin/Type/ArgumentValidatorPluginManager.php
View file @
427ec64d
...
...
@@ -10,11 +10,10 @@
use
Drupal\Component\Plugin\PluginManagerBase
;
use
Drupal\Component\Plugin\Factory\DefaultFactory
;
use
Drupal\views\Plugin\Discovery\ViewsDiscovery
;
use
Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery
;
class
ArgumentValidatorPluginManager
extends
PluginManagerBase
{
public
function
__construct
()
{
$this
->
discovery
=
new
AnnotatedClas
sDiscovery
(
'views'
,
'argument_validator'
);
$this
->
discovery
=
new
View
sDiscovery
(
'views'
,
'argument_validator'
);
$this
->
factory
=
new
DefaultFactory
(
$this
->
discovery
);
}
}
lib/Drupal/views/Plugin/Type/CachePluginManager.php
View file @
427ec64d
...
...
@@ -10,11 +10,10 @@
use
Drupal\Component\Plugin\PluginManagerBase
;
use
Drupal\Component\Plugin\Factory\DefaultFactory
;
use
Drupal\views\Plugin\Discovery\ViewsDiscovery
;
use
Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery
;
class
CachePluginManager
extends
PluginManagerBase
{
public
function
__construct
()
{
$this
->
discovery
=
new
AnnotatedClas
sDiscovery
(
'views'
,
'cache'
);
$this
->
discovery
=
new
View
sDiscovery
(
'views'
,
'cache'
);
$this
->
factory
=
new
DefaultFactory
(
$this
->
discovery
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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