Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
306
Merge Requests
306
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
b260fc13
Commit
b260fc13
authored
Aug 27, 2012
by
damiankloip
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement ViewStorageInterface on ViewStorage
parent
151d7b25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
lib/Drupal/views/ViewStorage.php
lib/Drupal/views/ViewStorage.php
+22
-1
No files found.
lib/Drupal/views/ViewStorage.php
View file @
b260fc13
...
...
@@ -9,7 +9,7 @@
use
Drupal\config\ConfigurableBase
;
class
ViewStorage
extends
ConfigurableBase
{
class
ViewStorage
extends
ConfigurableBase
implements
ViewStorageInterface
{
public
function
__construct
(
array
$values
,
$entity_type
)
{
parent
::
__construct
(
$values
,
'view'
);
...
...
@@ -22,6 +22,27 @@ public function id() {
return
$this
->
name
;
}
/**
* Implements Drupal\views\ViewStorageInterface::enable().
*/
public
function
enable
()
{
$this
->
disabled
=
FALSE
;
}
/**
* Implements Drupal\views\ViewStorageInterface::disable().
*/
public
function
disable
()
{
$this
->
disabled
=
TRUE
;
}
/**
* Implements Drupal\views\ViewStorageInterface::isEnabled().
*/
public
function
isEnabled
()
{
return
!
$this
->
disabled
;
}
/**
* Add a new display handler to the view, automatically creating an id.
*
...
...
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