File tree Expand file tree Collapse file tree 8 files changed +0
-52
lines changed Expand file tree Collapse file tree 8 files changed +0
-52
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace Netgen \Bundle \IbexaScheduledVisibilityBundle \DependencyInjection ;
6
6
7
- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
8
7
use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
9
8
use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
10
9
use Symfony \Component \Config \Definition \ConfigurationInterface ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
use Ibexa \Contracts \Core \Repository \ContentService ;
8
8
use Ibexa \Contracts \Core \Repository \Repository ;
9
9
use Ibexa \Contracts \Core \Repository \Values \Content \Content as ContentValue ;
10
- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
11
10
use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
12
11
13
12
final class Content implements ScheduledVisibilityInterface
@@ -40,9 +39,4 @@ public function isVisible(ContentValue $content): bool
40
39
{
41
40
return !$ content ->contentInfo ->isHidden ();
42
41
}
43
-
44
- public function getType (): HandlerType
45
- {
46
- return HandlerType::Content;
47
- }
48
42
}
Original file line number Diff line number Diff line change 8
8
use Ibexa \Contracts \Core \Repository \LocationService ;
9
9
use Ibexa \Contracts \Core \Repository \Repository ;
10
10
use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
11
- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
12
11
use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
13
12
14
13
final class ContentAndLocation implements ScheduledVisibilityInterface
@@ -73,9 +72,4 @@ public function isVisible(Content $content): bool
73
72
74
73
return true ;
75
74
}
76
-
77
- public function getType (): HandlerType
78
- {
79
- return HandlerType::ContentAndLocation;
80
- }
81
75
}
Original file line number Diff line number Diff line change 7
7
use Ibexa \Contracts \Core \Repository \LocationService ;
8
8
use Ibexa \Contracts \Core \Repository \Repository ;
9
9
use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
10
- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
11
10
use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
12
11
13
12
final class Location implements ScheduledVisibilityInterface
@@ -60,9 +59,4 @@ public function isVisible(Content $content): bool
60
59
61
60
return true ;
62
61
}
63
-
64
- public function getType (): HandlerType
65
- {
66
- return HandlerType::Location;
67
- }
68
62
}
Original file line number Diff line number Diff line change 10
10
use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
11
11
use Ibexa \Contracts \Core \Repository \Values \ObjectState \ObjectState as ObjectStateValue ;
12
12
use Ibexa \Contracts \Core \Repository \Values \ObjectState \ObjectStateGroup ;
13
- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
14
13
use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
15
14
16
15
final class ObjectState implements ScheduledVisibilityInterface
@@ -43,11 +42,6 @@ public function reveal(Content $content): void
43
42
$ this ->setObjectState ($ content , $ visibleObjectStateId );
44
43
}
45
44
46
- public function getType (): HandlerType
47
- {
48
- return HandlerType::ObjectState;
49
- }
50
-
51
45
/**
52
46
* @throws NotFoundException
53
47
*/
Original file line number Diff line number Diff line change 8
8
use Ibexa \Contracts \Core \Repository \Repository ;
9
9
use Ibexa \Contracts \Core \Repository \SectionService ;
10
10
use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
11
- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
12
11
use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
13
12
14
13
final class Section implements ScheduledVisibilityInterface
@@ -34,11 +33,6 @@ public function reveal(Content $content): void
34
33
$ this ->assignSection ($ content , $ visibleSectionId );
35
34
}
36
35
37
- public function getType (): HandlerType
38
- {
39
- return HandlerType::Section;
40
- }
41
-
42
36
public function isHidden (Content $ content ): bool
43
37
{
44
38
return $ content ->getContentInfo ()->getSectionId () === $ this ->hiddenSectionId ;
Original file line number Diff line number Diff line change 5
5
namespace Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility ;
6
6
7
7
use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
8
- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
9
8
10
9
interface ScheduledVisibilityInterface
11
10
{
@@ -16,6 +15,4 @@ public function reveal(Content $content): void;
16
15
public function isHidden (Content $ content ): bool ;
17
16
18
17
public function isVisible (Content $ content ): bool ;
19
-
20
- public function getType (): HandlerType ;
21
18
}
You can’t perform that action at this time.
0 commit comments